package day03;

public class Test06 {
    public static void main(String[] args) {
        int a =10;
        String str = "";
        int connt=0;
        while (true){
            //求商
           int s= a /2;
           //求余数
           int  y= a %2;
            str = y + str;//
            connt++;
           if (s == 0){
           break;
           }
           a=s;
        }
        System.out.println(str);
        System.out.println(connt);

        String zero="";
       int m=0;
        for (int i = 1; i <=32-connt; i++) {
            zero+="0";
            m++;

            if (m==8){
              zero=zero+" ";
                m=0;

            }
        }
        System.out.println(zero+str);
    }
}
